package com.yuyu.sequence.seq;

import com.yuyu.sequence.seq.SeqConstant.SeqEnum;
import java.util.concurrent.BlockingQueue;

/**
 * 序列实体
 *
 * @author yuyu
 * @date 2018/12/5
 */
public class SeqEntity {

    /**
     * 序列枚举
     */
    private SeqConstant.SeqEnum seqEnum;

    /**
     * 队列
     */
    private BlockingQueue<Long> queue;

    public SeqEntity(SeqEnum seqEnum, BlockingQueue<Long> queue) {
        this.seqEnum = seqEnum;
        this.queue = queue;
    }


    public SeqEnum getSeqEnum() {
        return seqEnum;
    }

    public void setSeqEnum(SeqEnum seqEnum) {
        this.seqEnum = seqEnum;
    }

    public BlockingQueue<Long> getQueue() {
        return queue;
    }

    public void setQueue(BlockingQueue<Long> queue) {
        this.queue = queue;
    }
}
